<template>
  <div class="logo">
    <router-link :to="{name:'defaultDocSearch'}">

      <!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
      <img v-if="navTheme === 'dark'"  style="max-width: 70px;margin-top: -5px" src="~@/assets/logo-zhis.png" alt="logo">
      <img v-else style="max-width: 60px;margin-top: -8px;margin-left: -7px" src="~@/assets/logo-zhis.png" alt="logo">
      <!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->

      <!--<span v-if="showTitle" class="showTitle">{{ title }}</span>-->
    </router-link>
  </div>
</template>

<script>
  import { mixin } from '@/utils/mixin.js'

  export default {
    name: 'Logo',
    mixins: [mixin],
    props: {
      title: {
        type: String,
        default: 'Smart Aviator',
        required: false
      },
      showTitle: {
        type: Boolean,
        default: true,
        required: false
      }
    }
  }
</script>
<style lang="less" scoped>

  .showTitle{
    margin-left: 10px;
    font-size: 15px;
    /*color: #303133;*/
    font-weight: 600;
  }



  .sider {
    box-shadow: none !important;
    .logo {

      box-shadow: none !important;
      transition: background 300ms;

      a {
        color: white;
        &:hover {
          color: rgba(255, 255, 255, 0.8);
        }
      }
    }

    &.light .logo {
      background-color: @primary-color;
      height: 58px;
    }
  }
</style>